/*
 * @Author: wangc
 * @Date: 2021-03-15 12:54:06
 * @Description: login  8088
 */
import { request } from '@/utils/request'

// 获取登录列表
export function getLoginList(data, callBack) {
    return request({
        url: '/work_station/list_by_station',
        method: 'get',
        data,
        // isUser: true,
        isRealIp: true
    }, callBack)
}

// 登录
export function getLogin(data, callBack) {
    return request({
        url: '/work_station/login_4_worker',
        method: 'post',
        data,
        isUser: true,
        isFile: true
    }, callBack)
}

// 二维码返回信息
export function getTaskStep(data, callBack) {
    return request({
        url: '',
        method: 'get',
        data,
        isYarn: true,
        isResUrl: true
    }, callBack)
}

// 初始化
export function getInit(data, callBack) {
    return request({
        url: '/work_station/init',
        method: 'get',
        data,
        isRealIp: true
    }, callBack)
}

// 挡车工信息
export function getClothList(data, callBack) {
    return request({
        url: '/work_station/list_by_post',
        method: 'get',
        data,
        isUser: true
    }, callBack)
}

// 刷新token
export function getRefreshToken(data, callBack) {
    return request({
        url: '/auth/refresh',
        method: 'get',
        data,
        isUser: true
    }, callBack)
}